#include<iostream>
#include<vector>
#include"sort.hpp"
using namespace std;

int main(int argc, char* argv[])
{
    //cout<<argc<<endl;
    if(argc <= 1)
    {
        cout<<"Using: \n\t"<<argv[0]<<" "<<"numbers..."<<endl;
        return 1;
    }
    vector<int> nums;
    for(int i=1; i<argc; i++)
    {
        nums.push_back(stoi(argv[i]));
    }

    //quickSort(nums, 0, nums.size()-1);
    //quickSortNonR(nums, 0, nums.size()-1);
    MergeSort(nums,0,nums.size()-1);
    for(auto num:nums)
    {
        cout << num << " ";
    }
    cout<<endl;
    return 0;
}